package com.tvunetworks.center.device.model.api;

/**
 * @author Etan Yang
 * @create: 2021/10/13 16:04
 */
public enum DeviceGeoResponse {
    /**
     * SUCCESS
     */
    SUCCESS("0","Success"),
    /**
     * EXCEPTION
     */
    EXCEPTION("80050033","Server exception"),
    /**
     * PARAMETER_ERROR
     */
    PARAMETER_ERROR("80050002","Invalid parameters"),
    /**
     * NO_LOGIN
     */
    NO_LOGIN("80050027","SessionID Expired"),
    /**
     * AUTHEN_FAILED
     */
    AUTHEN_FAILED("80050034","Appkey authentication failed"),
    /**
     * WHITE_IP_FORBIDDEN
     */
    WHITE_IP_FORBIDDEN("80050035","Failure to authenticated white list"),
    /**
     * FUNCTION_FORBIDDEN
     */
    FUNCTION_FORBIDDEN("80050036","Failure to authenticated function"),
    /**
     * CHECK_IS_CURRENT_R
     */
    CHECK_IS_CURRENT_R("80050037","This R not belong to current user"),
    /**
     * REQUEST_TYPE_FORMAT_ERROR
     */
    REQUEST_TYPE_FORMAT_ERROR("80050038","Param 'JsonOrXml' shoud be 'JSON' or 'XML'"),
    ;


     DeviceGeoResponse(String errorCode, String errorInfo) {
        this.errorCode = errorCode;
        this.errorInfo = errorInfo;
    }

    private String errorCode;
    private String errorInfo;
    
    public String getErrorCode() {
        return errorCode;
    }
    
    public String getErrorInfo() {
        return errorInfo;
    }
    
    
}
